package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 护理项目Mapper接口
 */
@Mapper
public interface NursingProjectMapper {

    /**
     * 分页条件查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingProjectVo> list(String name, Integer status);

    /**
     * 新增护理项目
     * @param nursingProject
     */
    void insert(NursingProject nursingProject);

    /**
     * 根据ID查询护理
     * @param id
     * @return
     */
    NursingProject seleteById(Long id);

    /**
     * 修改护理
     * @param nursingProject
     */
    void update(NursingProject nursingProject);

    /**
     * 删除护理项目
     * @param id
     */
    void deleteById(Long id);
}